package cn.hn.tx.mail.service;

import java.util.List;

import cn.hn.tx.mail.model.MailAccount;
import cn.hn.tx.mail.model.MailAddress;
import cn.hn.tx.mail.model.MailContent;

public interface IMailService {
	Integer insertMailAddress(MailAddress ma);

	void updateMailAddress(MailAddress ma);

	MailAddress queryMailAddress(int id);

	List<MailAddress> queryAllMailAddress();
	
	List<MailAddress> queryAllMailAddressByStatus(Integer status);

	List<MailAccount> queryAllMailAccount();
	
	List<MailAccount> queryAllMailAccountByStatus(Integer status);

	MailContent queryOldestMailContent();
	
	MailContent queryOldestMailContentByStatus(Integer status);

	void updateMailContent(MailContent mc);

}
